<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title></title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="/n.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="/n.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
  <?php 
  require_once('dbConn.php');
  require_once('myFunc.php'); 
connect();
  $id=$_GET['id'];
  $sql="select * from jiaju where lcy_id=$id";
  $result=fetch_array($sql);
?>
    <div class="container">
    <div class="row">
      <!--这里添加代码-->
      <h3 align="center">家具详情</h3>
<table class="table table-hover" align="center" width="80%">
<tr>
  <th>图片</th>
  <th>名称</th>
  <th>产地</th>
  <th>所属类别</th>
</tr>
<?php 
foreach ($result as $row ) {
   echo '<tr>';
   echo '<td><img src="uploads/'.$row['lcy_jiajulink'].'" width="80px"  height="80px" class="img-rounded"></td>';
   echo '<td>'.$row['lcy_name'].'</td>';
   echo '<td>'.$row['lcy_brand'].'</td>';
   echo '<td>'.$row['lcy_cname'].'</td>';    
    echo '</tr>';
    $totalrows = count($result);     
  
    
}
 ?>
</table>
    </div>
    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jQuery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
<ml>
